<?php
class Sysconfig {
	public static $institutes=array(
			"chinese"=>"中文",
			"physical"=>"物理系",
			"software"=>"软件学院",
			"computer"=>"计算机系"
			);
	public static $teacherTypes=array(
			"1"=>"本校",
			"2"=>"外校(国内)",
			"3"=>"国外"
			);
	public static $jobtitles=array(
			"1"=>"教授",
			"2"=>"副教授",
			"3"=>"院士",
			"4"=>"杰青",
			"5"=>"三江"
			);
	public static $activityType = array(
			"1"=>"学生活动",
			"2"=>"教师/院系活动",
			"3"=>"交流项目"
			);
	public static $activitySubType = array(
			"1"=>array(
					"0"=>"研讨会",
					"1"=>"共同体专属活动"
					),
			"2"=>array(
					"2"=>"教师交流",
					"3"=>"教师培训",
					"4"=>"院系研讨",
					"5"=>"导师午餐会"
					),
			"3"=>array(
					"6"=>"学科间交流",
					"7"=>"校际交流",
					"8"=>"国际交流"
					)
			);
	private function __construct() {
	}
	
	public static function getDatabaseInfo() {
		return array ('host' => 'localhost', 'username' => 'root', 'password' => 'root', 'database' => 'coursesystem' );
	}
	
	public static function getImportFiles() {
		$path = dirname ( dirname ( __FILE__ ) ) . DIRECTORY_SEPARATOR;
		return array (
				$path . 'controller', 
				$path . 'interface',
				$path . 'model' . DIRECTORY_SEPARATOR . 'Mysql', //because MysqlObje must be import before Database
				$path . 'model', 
				$path . 'view' 
				);
	}
	
	public static function getPageSize() {
		return 20;
	}
}